package org.edu.modules.center.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@TableName("ve_study_progress")
@ApiModel(value="ve_study_progress对象", description="学生学习进度记录")
public class VeStudyProgress
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("主键ID，自增长")
    private Integer id;
    @ApiModelProperty("教学活动ID")
    private Integer tcid;
    @ApiModelProperty("学生用户ID,传0时为当前登录用户id")
    private Integer studentid;
    @ApiModelProperty("学生姓名")
    private String studentname;
    @ApiModelProperty("章节ID")
    private Integer nodeid;
    @ApiModelProperty("学习时间（单位：秒）")
    private Integer studytime;
    @ApiModelProperty("最后学习时间")
    private Integer lasttime;
    @ApiModelProperty("是否学习完成（0=未完成，1=完成）")
    private Integer isfinished;
    @ApiModelProperty("学习次数")
    private Integer hitcount;
    @ApiModelProperty("笔记数")
    private Integer notecount;
    @ApiModelProperty("提问次数")
    private Integer askcount;
    @ApiModelProperty("终端ID")
    private Integer terminalid;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public VeStudyProgress setStudentid(Integer studentid)
    {
        this.studentid = studentid;return this;
    }

    public VeStudyProgress setTcid(Integer tcid)
    {
        this.tcid = tcid;return this;
    }

    public VeStudyProgress setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeStudyProgress(id=" + getId() + ", tcid=" + getTcid() + ", studentid=" + getStudentid() + ", studentname=" + getStudentname() + ", nodeid=" + getNodeid() + ", studytime=" + getStudytime() + ", lasttime=" + getLasttime() + ", isfinished=" + getIsfinished() + ", hitcount=" + getHitcount() + ", notecount=" + getNotecount() + ", askcount=" + getAskcount() + ", terminalid=" + getTerminalid() + ", placeId=" + getPlaceId() + ")";
    }

    public VeStudyProgress setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeStudyProgress setTerminalid(Integer terminalid)
    {
        this.terminalid = terminalid;return this;
    }

    public VeStudyProgress setAskcount(Integer askcount)
    {
        this.askcount = askcount;return this;
    }

    public VeStudyProgress setNotecount(Integer notecount)
    {
        this.notecount = notecount;return this;
    }

    public VeStudyProgress setHitcount(Integer hitcount)
    {
        this.hitcount = hitcount;return this;
    }

    public VeStudyProgress setIsfinished(Integer isfinished)
    {
        this.isfinished = isfinished;return this;
    }

    public VeStudyProgress setLasttime(Integer lasttime)
    {
        this.lasttime = lasttime;return this;
    }

    public VeStudyProgress setStudytime(Integer studytime)
    {
        this.studytime = studytime;return this;
    }

    public VeStudyProgress setNodeid(Integer nodeid)
    {
        this.nodeid = nodeid;return this;
    }

    public VeStudyProgress setStudentname(String studentname)
    {
        this.studentname = studentname;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $tcid = getTcid();result = result * 59 + ($tcid == null ? 43 : $tcid.hashCode());Object $studentid = getStudentid();result = result * 59 + ($studentid == null ? 43 : $studentid.hashCode());Object $nodeid = getNodeid();result = result * 59 + ($nodeid == null ? 43 : $nodeid.hashCode());Object $studytime = getStudytime();result = result * 59 + ($studytime == null ? 43 : $studytime.hashCode());Object $lasttime = getLasttime();result = result * 59 + ($lasttime == null ? 43 : $lasttime.hashCode());Object $isfinished = getIsfinished();result = result * 59 + ($isfinished == null ? 43 : $isfinished.hashCode());Object $hitcount = getHitcount();result = result * 59 + ($hitcount == null ? 43 : $hitcount.hashCode());Object $notecount = getNotecount();result = result * 59 + ($notecount == null ? 43 : $notecount.hashCode());Object $askcount = getAskcount();result = result * 59 + ($askcount == null ? 43 : $askcount.hashCode());Object $terminalid = getTerminalid();result = result * 59 + ($terminalid == null ? 43 : $terminalid.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());Object $studentname = getStudentname();result = result * 59 + ($studentname == null ? 43 : $studentname.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeStudyProgress;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeStudyProgress)) {
            return false;
        }
        VeStudyProgress other = (VeStudyProgress)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$tcid = getTcid();Object other$tcid = other.getTcid();
        if (this$tcid == null ? other$tcid != null : !this$tcid.equals(other$tcid)) {
            return false;
        }
        Object this$studentid = getStudentid();Object other$studentid = other.getStudentid();
        if (this$studentid == null ? other$studentid != null : !this$studentid.equals(other$studentid)) {
            return false;
        }
        Object this$nodeid = getNodeid();Object other$nodeid = other.getNodeid();
        if (this$nodeid == null ? other$nodeid != null : !this$nodeid.equals(other$nodeid)) {
            return false;
        }
        Object this$studytime = getStudytime();Object other$studytime = other.getStudytime();
        if (this$studytime == null ? other$studytime != null : !this$studytime.equals(other$studytime)) {
            return false;
        }
        Object this$lasttime = getLasttime();Object other$lasttime = other.getLasttime();
        if (this$lasttime == null ? other$lasttime != null : !this$lasttime.equals(other$lasttime)) {
            return false;
        }
        Object this$isfinished = getIsfinished();Object other$isfinished = other.getIsfinished();
        if (this$isfinished == null ? other$isfinished != null : !this$isfinished.equals(other$isfinished)) {
            return false;
        }
        Object this$hitcount = getHitcount();Object other$hitcount = other.getHitcount();
        if (this$hitcount == null ? other$hitcount != null : !this$hitcount.equals(other$hitcount)) {
            return false;
        }
        Object this$notecount = getNotecount();Object other$notecount = other.getNotecount();
        if (this$notecount == null ? other$notecount != null : !this$notecount.equals(other$notecount)) {
            return false;
        }
        Object this$askcount = getAskcount();Object other$askcount = other.getAskcount();
        if (this$askcount == null ? other$askcount != null : !this$askcount.equals(other$askcount)) {
            return false;
        }
        Object this$terminalid = getTerminalid();Object other$terminalid = other.getTerminalid();
        if (this$terminalid == null ? other$terminalid != null : !this$terminalid.equals(other$terminalid)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();
        if (this$placeId == null ? other$placeId != null : !this$placeId.equals(other$placeId)) {
            return false;
        }
        Object this$studentname = getStudentname();Object other$studentname = other.getStudentname();return this$studentname == null ? other$studentname == null : this$studentname.equals(other$studentname);
    }

    public Integer getId()
    {
        return this.id;
    }

    public Integer getTcid()
    {
        return this.tcid;
    }

    public Integer getStudentid()
    {
        return this.studentid;
    }

    public String getStudentname()
    {
        return this.studentname;
    }

    public Integer getNodeid()
    {
        return this.nodeid;
    }

    public Integer getStudytime()
    {
        return this.studytime;
    }

    public Integer getLasttime()
    {
        return this.lasttime;
    }

    public Integer getIsfinished()
    {
        return this.isfinished;
    }

    public Integer getHitcount()
    {
        return this.hitcount;
    }

    public Integer getNotecount()
    {
        return this.notecount;
    }

    public Integer getAskcount()
    {
        return this.askcount;
    }

    public Integer getTerminalid()
    {
        return this.terminalid;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }
}
